.box{
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid red;
    margin: 300px;
}
.box img{
    width: 40px;
    position: absolute;
    left: 0;
    top: -10px;
}
